package com.chuzhong.sf.gui;

import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;

/**
 * @Author 初衷.
 * @Date 2020/10/18
 * 添加按钮显示效果
 **/
public class MyButton_user implements TableCellRenderer {


    private JButton button;

    public MyButton_user() {
        button = new JButton("用户管理");
        Font font = new Font("宋体", Font.PLAIN, 20);//设置字体
        button.setFont(font);
    }

    @Override
    public Component getTableCellRendererComponent(JTable table, Object value,
                                                   boolean isSelected, boolean hasFocus, int row, int column) {
        return button;
    }


}
